package com.zxl.common.model.bo.goods;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotNull;

/**
 * @author zxw
 * @date 2023/4/1
 */
@Data
public class GoodsTypeSaveBo {
    @ApiModelProperty("修改时传,分类id")
    private Integer id;

    @ApiModelProperty("启用状态")
    private Integer status;

    @ApiModelProperty("图片地址")
    private String categoryImgUrl;


    @ApiModelProperty("分类名称")
    @NotNull(message = "分类名称不能为空")
    private String categoryName;

    @ApiModelProperty("顺序")
    @NotNull(message = "顺序不能为空")
    private Integer sequence;

    @ApiModelProperty(hidden = true)
    private Integer userId;
}
